import request from '@/utils/request'

// 查询列表
export function listMediaSource(query) {
  return request({
    url: '/media/mediaSource/list',
    method: 'get',
    params: query
  })
}
//
export function addMediaSource(data) {
  return request({
    url: '/media/mediaSource',
    method: 'post',
    data: data
  })
}

export function updateMediaSource(data) {
  return request({
    url: '/media/mediaSource',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delMediaSource(Ids) {
  return request({
    url: '/media/mediaSource/' + Ids,
    method: 'delete'
  })
}

export function deleteFile(data) {
  return request({
    url: '/media/mediaSource/deleteFile',
    method: 'post',
    data: data
  })
}

export function tts(data) {
  return request({
    url: '/media/mediaSource/tts',
    method: 'post',
    data: data
  })
}
